package com.happycat.social.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.happycat.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName(value = "user_official_account")
public class SocialFollow extends BaseEntity<Long> {

    @ApiModelProperty(value = "类型0用户/1聊天室/2圈子/3拉黑")
    @TableField(value = "focus_type")
    protected Integer focusType;

    @ApiModelProperty(value = "用户")
    @TableField(value = "account_id")
    protected Long user;

    @ApiModelProperty(value = "被关注用户")
    @TableField(value = "focus_id")
    protected Long followedUser;

//    @ApiModelProperty(value = "关注状态: 0取消关注，1关注")
//    protected Boolean status;

    //新增关注
    public SocialFollow(long followedUserId, long userId) {
        this.user = userId;
        this.followedUser = followedUserId;
    }


}